package itcast.service.impl;

import itcast.dao.AdminDao;
import itcast.dao.impl.AdminDaoImpl;
import itcast.domain.Admin;
import itcast.service.AdminService;

public class AdminServiceImpl implements AdminService {
    //实现AdminDao类
  private  AdminDao adminDao=new AdminDaoImpl();
    @Override
    public Admin denglu(Admin admin) {
        //获取管理员用户名和密码的方法
        return adminDao.findAdminByUsernameAndPassword(admin.getUsername(),admin.getPassword());
    }
}
